﻿namespace System.Modules.Extensions
{
    /// <summary>
    /// Enum Extensions
    /// </summary>
    public static class EnumExtensions
    {
        #region Value
        /// <summary>
        /// Use this method to get the integer value of any enum
        /// </summary>
        /// <param name="value"></param>
        /// <returns>int</returns>
        public static int Value(this Enum value)
        {
            return Convert.ToInt32(value);
        } 
        #endregion
    }
}
